package org.bai.meetingfilm.backend.show.consumer.controller;

import org.bai.meetingfilm.backend.show.consumer.service.ConsumerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConsumerController
 * @Description 消费者Controler
 * @Author bai
 * @Date 2021/7/18 15:57
 * @Version 1.0
 **/
@RestController
public class ConsumerController {

    private static final Logger LOGGER = LoggerFactory.getLogger(ConsumerController.class);

    private final ConsumerService consumerService;

    @Autowired
    public ConsumerController(ConsumerService consumerService) {
        this.consumerService = consumerService;
    }

    @GetMapping("/say")
    public String sayHello(String message) {
        return consumerService.sayHello(message);
    }
}
